package com.yunxin.core.application.dto.product;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author zero°
 * @since 2023-12-16
 */
@Data
public class AdvanceChargePageDTO {

    /**
     * 商户id
     */
    @Schema(description = "商户id")
    private Long merchantId;

    /**
     * 商户名称
     */
    @Schema(description = "商户名称")
    private String merchantName;



    @Schema(description = "产品ids")
    private List<Long> productIds;

    /**
     * 商户名称
     */
    @Schema(description = "产品名称")
    private String productName;

    /**
     * 结算数量
     */
    @Schema(description = "结算数量")
    private Integer settlementNumber;

    /**
     * 结算金额
     */
    @Schema(description = "结算金额")
    private BigDecimal settlementAmount;

    /**
     * 预付款金额
     */
    @Schema(description = "预付款金额")
    private BigDecimal advanceChargeAmount;

    /**
     * 已消耗金额
     */
    @Schema(description = "已消耗金额")
    private BigDecimal consumedAmount;

    /**
     * 剩余预付款金额
     */
    @Schema(description = "剩余预付款金额")
    private BigDecimal residueAdvanceChargeAmount;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;
}
